<?php
define('SYS_DIR', dirname(__FILE__));
define('SYS_MODULE_DIR', SYS_DIR . '/module');

include SYS_DIR . '/include/load.php';
include SYS_DIR . '/include/common.php';
include SYS_DIR . '/db/mysqli.php';
include SYS_DIR . '/include/module.php';
include SYS_DIR . '/include/model.php';
include SYS_DIR . '/include/view.php';
include SYS_DIR . '/include/view_out.php';
include SYS_DIR . '/include/view_text.php';

ini_set('magic_quotes_sybase', 0);

ini_set('magic_quotes_runtime', 0);


ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '1');
ini_set('session.use_trans_sid', '0');
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_httponly', '1');
ini_set('session.gc_maxlifetime', '100');
  
tos_unregister_GLOBALS();

tos_fix_gpc_magic();

if ( function_exists( 'date_default_timezone_set' ) )
    date_default_timezone_set( 'UTC' );
    //date_default_timezone_set( 'Asia/Shanghai' );

tos_load_setting();

//echo date('Y-m-d H:i:s', time());

//header("content-type:text/html; charset=utf-8");

?>